package com.cn.springcloudwechat.mapper.mapper;

import com.cn.springcloudwechat.model.YmChildGrowthRepo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface YmChildGrowthRepoMapper {
    int deleteByPrimaryKey(Long childGrowthRepoId);

    int insert(YmChildGrowthRepo record);

    int insertSelective(YmChildGrowthRepo record);

    YmChildGrowthRepo selectByPrimaryKey(Long childGrowthRepoId);

    int updateByPrimaryKeySelective(YmChildGrowthRepo record);

    int updateByPrimaryKey(YmChildGrowthRepo record);

    /**
     * 查询所有成长指数
     * @return
     */
    List<YmChildGrowthRepo> getALl(@Param("sex") Short sex);


    /**
     * 根据孩子月份和性别查询对应指标
     * @param month
     * @param sex
     * @return
     */
    YmChildGrowthRepo getChildGrowthRepo(@Param("month") Integer month,@Param("sex") short sex);
}